package com.xyt.jax.ws.server.bootstrap;



import com.xyt.jax.ws.server.impl.HelloWorldServiceImpl;
import com.xyt.jax.ws.server.inter.HelloWorldService;

import javax.xml.ws.Endpoint;

/**
* 摘要：启动服务
* @author xyt
* @version 1.0
* @create 2016-12-28 17:59
**/
//能过以下方式访问是否发布成功:http://localhost:9089/service/HelloWorld?wsdl
public class ServerMain {
    public static void main(String[] args) {
        HelloWorldService hw = new HelloWorldServiceImpl();
        Endpoint.publish("http://localhost:9089/service/HelloWorld", hw);
        System.out.println("jax-ws-sever start success!!!");
    }
}
